package com.syg.logback.util;

import com.syg.logback.core.ApiTranInf;
import com.syg.logback.core.BizTranInf;
import com.syg.logback.core.FileMonitor;
import com.syg.logback.core.FileMonitorStep;
import com.syg.logback.core.SqlLogInf;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author syg
 * @version 1.0
 * @date 2021年11月23日15:54:46
 */
public class LogUtil {
    private static final Logger log = LoggerFactory.getLogger(LogUtil.class);

    public LogUtil() {
    }

    public static void printBizTran(BizTranInf bizTranInf) {
        log.warn(bizTranInf.toString());
    }

    public static void printApiTran(ApiTranInf apiTranInf) {
        log.warn(apiTranInf.toString());
    }

    public static void printSqlLog(SqlLogInf sqlLogInf) {
        log.warn(sqlLogInf.toString());
    }

    public static void printFileMonitor(FileMonitor fileMonitor) {
        log.warn(fileMonitor.toString());
    }

    public static void printFileMonitorStep(FileMonitorStep fileMonitorStep) {
        log.warn(fileMonitorStep.toString());
    }
}
